<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<jsp:useBean id="browserDescription" scope="request" class="Beans.BrowserDescriptionBean"/>
<jsp:useBean id="pageDescription" scope="request" class="Beans.PageDescriptionBean"/>
<jsp:useBean id="targetCalculator" scope="request" class="Beans.RedirectorBean"/>
<%
	browserDescription.setRequest(request); // pass request object to bean
	browserDescription.calculate();
	
	pageDescription.setRequest(request); // pass request object to bean
	pageDescription.calculate();

	targetCalculator.setRequest(request); // pass request object to bean
	targetCalculator.calculateTarget();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<script  type="text/javascript" src="Scripts/jQuery/jquery-1.6.2.min.js" ></script>
	<script  type="text/javascript" src="Scripts/jQuery/tools.scrollable-1.1.2.min.js" ></script>
    <script  type="text/javascript" src="Scripts/jQuery/tools.scrollable.mousewheel-1.0.1.min.js" ></script>
    <script  type="text/javascript" src="Scripts/jQuery/jquery.cookie.js" ></script>
    <script  type="text/javascript" src="Scripts/jQuery/query.params.js" ></script>
    <script  type="text/javascript" src="Scripts/jQuery/jquery.md5.js" ></script>
    <script  type="text/javascript" src="Scripts/Core.js"></script>
    <script  type="text/javascript" src="Scripts/Validation.js"></script> 
    <script  type="text/javascript" src="Scripts/Common.js"></script>
	<script  type="text/javascript" src="Scripts/Registration.js"></script>
	<script  type="text/javascript" src="Scripts/ChangeUser.js"></script>
	<script  type="text/javascript" src="Scripts/GetFieldUser.js"></script>
	<script type="text/javascript" src="Scripts/MoviesManipulate.js"></script>
	<script type="text/javascript" src="Scripts/MoviesView.js"></script>
    <script  type="text/javascript" src="Scripts/SocialConnectors/SocialConnectorManager.js"></script>  
    <script  type="text/javascript" src="Scripts/Process.js"></script>
    <link type="text/css" rel="stylesheet" href="Css/common.css" />
    <link type="text/css" rel="stylesheet" href="Css/notification.css" />
    <meta http-equiv="X-UA-Compatible" content="IE=10,8" />
    <title><%=pageDescription.getPageDescription()%></title>
</head>
<body class="<%=browserDescription.getCssClass()%> <%=pageDescription.getPageName()%>" style="visibility: hidden;">
		<%@ include file="WebTiles/header.jsp" %>
		<div id="NotificationContainer"></div>
		<%@ include file="WebTiles/feedback.jsp" %>
		<%@ include file="WebTiles/FBConnector.jsp" %>
		<%@ include file="WebTiles/GPlusConnector.jsp" %>

		<div id="content">
			<div id="header_place"></div>
			<form id="generalForm">
				<div class="Loading">&nbsp;</div>
	    		<div id="Cloak" class="Cloak">&nbsp;</div>
				<jsp:include page="<%=targetCalculator.getTarget()%>"></jsp:include>
			</form>
			<div id="footer_place"></div>
		</div>
		<%@ include file="WebTiles/footer.jsp" %>
</body>
</html>